<div id="thumb_table_div">
    <script>
        $("#thumb_table_div").mouseleave(function(){
            removeButtonsContests();
    });
    </script>
<table  id="thumb_table">  
            |£|foreach key=key from=$data item=item|\£|
                |£|if $key%$maxRow==0|\£|<tr class="thumbs_tr" >|£|/if|\£|
                    <td  id="vidwiz-thumb-td|£|$key|\£|" onmousemove="appendButtonsContests(this,'vidwiz-thumb|£|$key|\£|');" onmouseover="appendButtonsContests(this,'vidwiz-thumb|£|$key|\£|');"   class="thumbs_td">
                        <div id="vidwiz-thumb|£|$key|\£|" onmouseout="hideVideoInfos()" 
                             onclick="changeVideoView(this,'player','title','description','metatags','infoActualVideo');scrollUp();" 
                             align="center" class="thumbs" 
                             vidthumb="|£|$item.thumb|replace:".png":"_thumb.png"|\£|" 
                             vidbigthumb="|£|$item.thumb|\£|" 
                             vidtitle="|£|$item.title|\£|"
                             vidmetatags="|£|$item.metatags|\£|"
                             viddesc="|£|$item.description|\£|"
                             vidid="|£|$item.id|\£|"
                             contestid="|£|$contestid|\£|"
                             vidpath="|£|$item.file_position|\£|"
                             username="|£|$item.publisher_username|\£|"
                             key="|£|$key|\£|"
                             style="background-image: url('|£|$item.thumb|replace:".png":"_thumb.png"|\£|');">
                        </div>
                    </td>         
                |£|if ($key+1)%$maxRow==0|\£|</tr>|£|/if|\£|
            |£|/foreach|\£|
</table>
</div>

            